import os
import pymysql
import pytest

from config.config import *


@pytest.fixture(scope="session", autouse=True)
def destroy_data():

    yield

    sqls = [
        SQL1
    ]

    conn = pymysql.Connect(
        **eval(os.environ["DB"]),
        charset="utf8",
        autocommit=True,
    )
    cur = conn.cursor()

    # for sql in sqls:
    #     cur.execute(sql)

    # conn.commit()
    cur.close()
    conn.close()